
package com.feib.soeasy.dao;

import java.util.List;

import com.feib.soeasy.model.Group;
import com.feib.soeasy.model.Role;

/**
 * @title (#)RoleDao.java<br>
 * @description 繳費單項目 Dao<br>
 * @author Anson Tsai<br>
 * @version 1.0.0 2010/11/26
 * @copyright Far Eastern International Bank Copyright (c) 2010<br>
 * @2010/11/26 create by Anson Tsai<br>
 */
public interface RoleDao extends HibernateDao<Role, Long>
{
    public List<Role> findByGroupNo(String groupNo);

    /**
     * @param group
     * @return
     */
    public int countRoleByGroupExcludeAdmin(Group group);

    /**
     * @param group
     */
    public void deleteByGroup(Group group);
}
